package com.linkallcloud.core.enums;

public enum FlowStepType implements EnumBase<Integer> {

    Status(0, "状态"), Prop(1, "属性修改");

    private int code;
    private String message;

    FlowStepType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public static FlowStepType get(Integer code) {
        for (FlowStepType ul : values()) {
            if (ul.getCode().equals(code)) {
                return ul;
            }
        }
        return null;
    }

}
